using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using dados;
namespace web
{
    public partial class Contatos : System.Web.UI.Page
    {
        public string sUrl = "";
        public string sCiclo1 = "";
        public string sCiclo2 = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {

                Parametros objParametros = new Parametros();

                DataTable dt = objParametros.Pesquisar();
                if (dt.Rows.Count > 0)
                {
                    sCiclo1 = dt.Rows[0]["LinkRevistaCiclo1"].ToString();
                    sCiclo2 = dt.Rows[0]["LinkRevistaCiclo2"].ToString();
                }

                if (Request.QueryString["Sel"] != null)
                {
                    Response.Redirect("Default.aspx?Sel=" + Request.QueryString["Sel"].ToString());
                }

                MenuClass objMenu = new MenuClass();

                xmlDataSource.Data = objMenu.Carregar().GetXml();
                xmlDataSource.DataBind();

            }
        }
    }
}
